import React from "react"
import './index.scss'
interface imgObj {
    children: {
        id:string,
        url:string,
        text:string
    }
}

const HotList:React.FC<imgObj> = ({children})=> {
    return(
        <div className="hotList">
           <a href="#"><img src={children.url} alt="hotImg" />
                <div>{children.text}</div>
           </a>
        </div>
    )
}

export default HotList